with the "all" option. This option can be useful as an "ignore
list" in some circumstances.
- DISTANCE ALONG A ROUTE (ARC)
+ Finally, the duplicate filter takes a "correct" option. If you
+ specify that option, the latitude and longitude frmo later duplicates
+ will replace the latitude and longitude in earlier waypoints. You
+ can use this to apply a list of "waypoint corrections" to a larger
+ file, while keeping all of the other details from the larger file.
+
+ DISTANCE FROM A ROUTE (ARC)
ARC
The arc filter is designed to include points based on their
static char *snopt = NULL;
static char *lcopt = NULL;
static char *purge_duplicates = NULL;
+static char *correct_coords = NULL;
static
arglist_t dup_args[] = {
ARGTYPE_BOOL},
{"all", &purge_duplicates, "Suppress all instances of duplicates",
ARGTYPE_BOOL},
+ {"correct", &correct_coords, "Use coords from duplicate points",
+ ARGTYPE_BOOL},
{0, 0, 0, 0}
};
if ( delwpt ) {
waypt_free(delwpt);
}
+ if ( correct_coords && oldnode && oldnode->wpt ) {
+ oldnode->wpt->latitude = waypointp->latitude;
+ oldnode->wpt->longitude = waypointp->longitude;
+ }
delwpt = waypointp;
waypt_del(waypointp); /* collision */
xfree(newnode);